"thisIsATrickyOne".split(/(?=[A-Z])/);
const name = 'flavio' const nameCapitalized = name.charAt(0).toUpperCase() + name.slice(1)
function capitalizeName(name) { return name.replace(/\b(\w)/g, s => s.toUpperCase()); }